Constructor: | |
---|---|
TK() | will create an empty window. |
Methods: | |
---|---|
title(string) | Set the title of this window. |
maxsize (width, height) | Set max WIDTH and HEIGHT for this widget. |
minsize (width, height) | Set min WIDTH and HEIGHT for this widget. |
resizable(width, height) |
|
geometry("WidthxHeight") | Sets the size of window. |
destroy( ) | Closes the window. |
configure(**options) |
Sets the attributes of window. Options can be:
|
cursor | Curosr for window : "arrow" ,"circle" , "clock" , "cross" , "plus" ,"watch" etc |
from tkinter import * win = Tk() win.configure(background="red", cursor="cross") win.geometry("500x300") win.title("CCIT") win.mainloop()